<?php
class BaseSnack {
   public function getID() {
      return $this->id;
   }

   public function getName() {
      return $this->name;
   }

   public function getPrice() {
      return $this->price;
   }

   public function getDescription() {
      return $this->desc;
   }

   public function getType() {
      return $this->type;
   }

   public function getPoints() {
      return $this->points;
   }

   public function toString() {
      return "Snack: {id=" . $this->id . ", name=" . $this->name .
         ", price=" . $this->price . ", description=" . $this->desc .
         ", type=" . $this->type . ", points=" . $this->points . "}";
   }

   protected $id;
   protected $name;
   protected $price;
   protected $desc;
   protected $type;
   protected $points;
}
?>